package com.grp6.game.chess.view;

import com.grp6.game.chess.model.ChessPiece;
import com.grp6.game.ui.platform.ICell;
import com.grp6.game.view.AbstractCellView;

public class ChessPieceView extends AbstractCellView<ChessPiece>{

	@Override
	public void update() {
		ChessPlaceView place = (ChessPlaceView) this.getModel().getPlace().getViews().get(0);
		for(ICell cell: place.getCells())
			cell.setSymbol("chess."
					+model.getColor().toString()
					+model.getFigure().toString());
		
	}
}
